www.gusucode.com > 基于matlab编程蒙特卡罗仿真设计源码程序 > 基于matlab编程蒙特卡罗仿真设计源码程序/第二讲 MATLAB入门/fun.m
function f=fun(x) f=100*(x(2)-x(1)^2)^2+(1-x(1))^2